-- GENERATED SPELL FOR [Smolderthorn Headhunter] --


function spell0_9241(pUnit, Event) --@Impale,n/a--
pUnit:FullCastSpellOnTarget(16001,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9241', 9000, 1)
end

function spell1_9241(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9241', 20000, 1)
end

function spell2_9241(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(15795,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9241', 680, 1)
end

function Sorts_9241(pUnit, Event)
local choix_sorts_9241 = math.random(0, 2)
if choix_sorts_9241 == 0 then
pUnit:RegisterEvent('spell0_9241', 1, 1)
end
if choix_sorts_9241 == 1 then
pUnit:RegisterEvent('spell1_9241', 1, 1)
end
if choix_sorts_9241 == 2 then
pUnit:RegisterEvent('spell2_9241', 1, 1)
end
end

function mob9241_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9241', math.random(1500, 3000), 1)
end

function mob9241_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9241_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9241_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9241, 1, 'mob9241_Action')
RegisterUnitEvent(9241, 2, 'mob9241_Leave')
RegisterUnitEvent(9241, 3, 'mob9241_Kill')
RegisterUnitEvent(9241, 4, 'mob9241_Die')
